package com.ruoyi.quartz.task;

import com.ruoyi.management.mock.service.ITNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;


/**
 * 下架广告
 * 
 * @author lss
 */
@Component("downNoticeTask")
public class DownNoticeTask
{
    @Autowired
    private ITNoticeService noticeService;

    /**
     * 下架广告
     */
    @Transactional(rollbackFor = Exception.class)
    public void downNotice(){
        noticeService.downNotice();
    }
}
